﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TutorCenter.DataAccess.DataContext;
using TutorCenter.DataAccess.Entity;

namespace DemoEntity
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var db= new DataContext())
            {
                db.Grades.Add(new Grade{Name = "Lớp 1"});
                db.Subjects.Add(new Subject {Name = "Toán"});
                db.SaveChanges();
            }

        }
    }
}
